<?php
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}

$TCA['tx_mfwcvolunteer_favorite'] = array(
	'ctrl' => $TCA['tx_mfwcvolunteer_favorite']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'hidden'
	),
	'feInterface' => $TCA['tx_mfwcvolunteer_favorite']['feInterface'],
	'columns' => array(
		'hidden' => array(		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array(
				'type'    => 'check',
				'default' => '0'
			)
		),
	),
	'types' => array(
		'0' => array('showitem' => 'hidden;;1;;1-1-1')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	)
);



$TCA['tx_mfwcvolunteer_departments'] = array(
	'ctrl' => $TCA['tx_mfwcvolunteer_departments']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'hidden,title,admin,receive_email'
	),
	'feInterface' => $TCA['tx_mfwcvolunteer_departments']['feInterface'],
	'columns' => array(
		'hidden' => array(		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array(
				'type'    => 'check',
				'default' => '0'
			)
		),
		'title' => array(		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mfwc_volunteer/locallang_db.xml:tx_mfwcvolunteer_departments.title',		
			'config' => array(
				'type' => 'input',	
				'size' => '30',
			)
		),
		'admin' => array(		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mfwc_volunteer/locallang_db.xml:tx_mfwcvolunteer_departments.admin',		
			'config' => array(
				'type' => 'select',	
				'items' => array(
					array('', 0),
				),
				'foreign_table' => 'fe_users',	
				'foreign_table_where' => ' ORDER BY fe_users.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'receive_email' => array(		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mfwc_volunteer/locallang_db.xml:tx_mfwcvolunteer_departments.receive_email',		
			'config' => array(
				'type' => 'check',
			)
		),
	),
	'types' => array(
		'0' => array('showitem' => 'hidden;;1;;1-1-1, title;;;;2-2-2, admin;;;;3-3-3, receive_email')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	)
);



$TCA['tx_mfwcvolunteer_jobs'] = array(
	'ctrl' => $TCA['tx_mfwcvolunteer_jobs']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'hidden,title,department_id'
	),
	'feInterface' => $TCA['tx_mfwcvolunteer_jobs']['feInterface'],
	'columns' => array(
		'hidden' => array(		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array(
				'type'    => 'check',
				'default' => '0'
			)
		),
		'title' => array(		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mfwc_volunteer/locallang_db.xml:tx_mfwcvolunteer_jobs.title',		
			'config' => array(
				'type' => 'input',	
				'size' => '30',
			)
		),
		'department_id' => array(		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mfwc_volunteer/locallang_db.xml:tx_mfwcvolunteer_jobs.department_id',		
			'config' => array(
				'type' => 'select',	
				'foreign_table' => 'tx_mfwcvolunteer_departments',	
				'foreign_table_where' => ' ORDER BY tx_mfwcvolunteer_departments.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
	),
	'types' => array(
		'0' => array('showitem' => 'hidden;;1;;1-1-1, title;;;;2-2-2, department_id;;;;3-3-3')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	)
);
?>